public enum EntityType extends Enum<EntityType> implements Type
Enum Constant and Description |
---|
EDGE
Entity is a edge.
|
VERTEX
Entity is a node.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getTypeClass()
Gets the type class.
|
static EntityType |
parseEntityType(String input)
Parses the entity type.
|
String |
toKey()
Returns the key of this type as string.
|
String |
toString() |
static EntityType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EntityType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final EntityType EDGE
public static final EntityType VERTEX
public Class<?> getTypeClass()
Type
getTypeClass
in interface Type
public static EntityType parseEntityType(String input)
input
- the string inputpublic String toKey()
Type
public String toString()
toString
in class Enum<EntityType>
public static EntityType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static EntityType[] values()
for (EntityType c : EntityType.values()) System.out.println(c);
Copyright © 2015. All rights reserved.